home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
How Would You Survive?
/
How Would You Survive (1995)(Grolier)[Mac-PC].iso
/
pc
/
shared.dir
/
01956_Script_Begin Life-Timeline
< prev
next >
Wrap
Text File
|
1995-09-13
|
3KB
|
154 lines
global gHotSpotStatus, gOpenHouse1, ¼
gOpenHouse2,gPreviousYN,gSlider,gLastMarker,¼
gTempLast,gNewMarker,gBeginTrans
on BYLSetUp
set gSlider = birth (script "aHozSlider",2,43,274,¼
382,"movePanOrama",2,"HandCursor")
go label("BYL1") + 44
end
on slideRight
repeat while the mouseDown
stepRight(gSlider)
movePanOrama
end repeat
end
on slideLeft
repeat while the mouseDown
stepLeft(gSlider)
movePanOrama
end repeat
end
on doSlider
SliderBar(gSlider)
end
on movePanOrama
set perCent = getPercentH(gSlider)
set theFrame = (89*perCent)/100 + (label("BYL1"))
if theFrame < (label("BYL1")) then
set theFrame = (label("BYL1"))
else
if theFrame > (label("BYL89")) then
set theFrame = (label("BYL89"))
end if
end if
go theFrame
end
on moveVTL
set perCent = getPercentH(gSlider)
set theFrame = (16*perCent)/100 + (label("Time1"))
if theFrame < (label("Time1")) then
set theFrame = (label("Time1"))
else
if theFrame > (label("Time17")) then
set theFrame = (label("Time17"))
end if
end if
go theFrame
end
on slideRightVTL
stepRight(gSlider)
moveVTL
end
on slideLeftVTL
stepLeft(gSlider)
moveVTL
end
on killslider
hidecontrol (gSlider)
set gSlider = 0
end
on EBeginLifeFunction
if gHotSpotStatus = 0 then
if rollover(41) then handcursor
else
if rollover(40) then handcursor
else
if rollover(43) then handcursor
else
if rollover(28) then ArrowCursor
else
if rollover(39) then ArrowCursor
else
EGlobalRollover
ESliderRollovers
end if
end if
end if
end if
end if
else
EGlobalRollover
if rollover(26) Then
HandCursor
else
ArrowCursor
end if
end if
end
on VBeginLifeFunction
if gHotSpotStatus = 0 then
if rollover(41) then handcursor
else
if rollover(40) then handcursor
else
if rollover(43) then handcursor
else
if rollover(28) then ArrowCursor
else
VGlobalRollover
VSliderRollovers
end if
end if
end if
end if
else
VGlobalRollover
if rollover(26) Then
HandCursor
else
ArrowCursor
end if
end if
end
on ABeginLifeFunction
if gHotSpotStatus = 0 then
if rollover(41) then handcursor
else
if rollover(42) then handcursor
else
if rollover(43) then handcursor
else
if rollover(27) then ArrowCursor
else
AGlobalRollover
ASliderRollovers
end if
end if
end if
end if
else
AGlobalRollover
if rollover(26) Then
HandCursor
else
ArrowCursor
end if
end if
end